package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.po.InteractionReply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.ReplyPageQuery;
import com.tianji.learning.domain.vo.ReplyVO;

/**
 * <p>
 * 互动问题的回答或评论 服务类
 * </p>
 *
 * @author 东哥
 * @since 2024-08-25
 */
public interface IInteractionReplyService extends IService<InteractionReply> {

    /**
     * 管理端-分页查询回答或评论
     *
     * @param pageQuery
     */
    PageDTO<ReplyVO> queryReplyPage(ReplyPageQuery pageQuery, boolean isStudent);

    /*
     * 隐藏或显示指定回答或评论
     * */

    void hiddenOrShowReply(Long id, Boolean hidden);
    PageDTO<ReplyVO> pageQuery(ReplyPageQuery query,boolean isAnswer);

    void saveReply(ReplyDTO reply);
}
